<% content_for :left_sidebar do  %>
<%= render :partial => "layouts/sidebar/xiwenguanli" %>
<% end %>
<%- model_class = News -%>
<div class="page-header">
	<h1>统计</h1><a href="/admins/jifengerens" class = "btn btn-info btn-sm" target="_blank">个人 </a> | <a href="/admins/jifens/about" class = "btn btn-info btn-sm" target="_blank">说明 </a>

	<%= form_tag admins_jifens_path,:method => :get do %>
	<tr>

		<td> 发布时间:
		<%= text_field_tag :news_begin,session[:news_begin],:class => 'datepicker' %>~
		<%= text_field_tag :news_end,session[:news_end],:class => 'datepicker' %>
		<script type="text/javascript">
			$(document).ready(function() {
				$('.datepicker').datepicker({
					format : 'yyyy-mm-dd'
				});
			});
		</script></td>
	</tr>
	<tr>
        <td colspan="6">
          <%= select_button %>
        </td>
      </tr>
	<% end %>

	<table class="table table-striped">

		<thead>
			<tr>
				<th>单位</th>
				<th>新闻</th>
				<th>采用</th>
				<th>外宣</th>
				<th>校报</th>
				<th>退稿</th>
				<th>微信</th>
				<th>微博</th>
				
				<th>线索</th>
				
				<th>得分</th>

			</tr>
		</thead>

		<tbody>
			<% @tongj.each do |jifang| %>
			<tr>
				<td><%= jifang["department"] %></td>
				<td><%= jifang["shangchuan"] %></td>
				<td><%= jifang["cy"] %></td>
				<td><%= jifang["xwcy"] %></td>
				<td><%= jifang["xbcy"] %></td>
				<td><%= jifang["tg"] %></td>
				<td><%= jifang["wx"] %></td>
				<td><%= jifang["wb"] %></td>
				<td><%= jifang["xs"] %></td>
				<td><%= jifang["tj"]  %></td>
			</tr>
			<% end %>
		</tbody>
	</table>
</div>

<script src="/My97DatePicker/WdatePicker.js"></script>